/*package excercise;

import java.util.Scanner;

public class EX31 {

	

	public static void main(String[] args) {
	
		String mycard = "";
		Scanner sc = new Scanner(System.in);
		int mycardno = 1;
		int checkno1 = mycardno / 1000;
		int checkno2 = mycardno / 10000;
		mycardno = sc.nextInt();
		if(checkno1 == 35){
			if(mycardno == 356317)mycard = "JCB NH농협";
		
		else if (mycardno == 356901) mycard = "JCB 신한카드";
		
		else if(mycardno == 356901) mycard ="KB국민카드";
		}else if (checkno2 == 4){
		}else if (checkno2 == 5){
			
		}
		
		
	}
}
	

	
		System.out.println(mycard);
		//VO,Service 이용
		Mycardvo card = new Mycardvo(sc.nextInt());
		MycardService.checkMycard(card.getMyCardno());
		System.out.println(
				MycardService.checkMycard(
						card.getMycardno());
	
	}
}
class Mycardvo{
	private int mycardno;
	
	Public Mycardvo(){}
	Public Mycardvo(int mycardno){this.mycardno = mycard;}
	public void setMyCardno(int mycardno){this.mycardno = mycard}
	public String getMycardno(){return mycardno;}
}
class MycardService{
	public static String checkMycard(int mycardno){
	public 
		
		
		if(checkno1 == 35){
			if(mycardno == 356317)mycard = "JCB NH농협";
		
		else if (mycardno == 356901) mycard = "JCB 신한카드";
		
		else if(mycardno == 356901) mycard ="KB국민카드";
		}else if (checkno2 == 4){
		}else if (checkno2 == 5){
		}
	return mycard;
		
	}
}


	String jcb = "JCB카드";
	String beja = "비자카드";
	String mae = "마스타카드";
	int[] mynum = new int[2];
	Scanner sc = new Scanner(System.in);
	for (int i = 1; i < mynum.length; ++i){
		System.out.println("숫자를입력하세요");
		
		
	
		mynum[i] = sc.nextInt();
	
	if(mynum[i] / 10000 == 35){
		System.out.println(jcb);
	}else if (mynum[i] / 100000 == 4){
		System.out.println(beja);
	}else if(mynum[i] / 100000 == 5){
		System.out.println(mae);
	} else{
		System.out.println("잘못된값입니다.");
	}
	}
	}

class card{
	String jcb;
	String beja;
	String mae;
	public card() {
		jcb = "jcb카드";
		beja = "비자카드";
		mae = "마스타카드";
	}
	public card(String jcb, String beja, String mae){
		this.jcb = "jcb카드";
		this.beja = "비자카드";
		this.mae = "마스타카드";
	}

class cardservice{
	static int ramdom(String jcb, String beja, String mae){
		return jcb / 10000;
	}
}
*/